<%@page import="DTO.UserDTO"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<jsp:useBean id="products" class="BLO.ProductBLO"/>
<% products.ProductsToXML(getServletContext().getRealPath("/") + "WEB-INF/products.xml");%>
<div class="divHeader">
    <div id="logo">
        <a href="index.jsp">
            <img src="images/logo.png" title="XMLCar" alt="XMLCar"></a>
    </div>
    <div id="cart" class="">
        <div class="heading">
            <h4>Shopping Cart</h4>
            <a><span id="cart-total">chon</span></a>
        </div>
        <div class="content">
            aaaaaaaaaaaaaa
        </div>
    </div>
    <div id="search">
        <div class="button-search"></div>
        <input type="text" name="txtSearchValue"
               value="Search..." onclick="this.value = '';"
               onkeydown="this.style.color = '#000000';"/>
    </div>
    <div id="welcom">
        Welcome,
        <c:choose>
            <c:when test="${not empty sessionScope.USER}">
                <c:set var="currentUser" value="<%=(UserDTO)session.getAttribute("USER")%>"/>
                ${currentUser.fullName}
            </c:when>
            <c:otherwise>
                You can
        <a href="login.jsp">Login</a> or
        <a href="register.jsp">Register</a> !
            </c:otherwise>
        </c:choose>
    </div>
</div>
<div class="divMenu">
    This is a Menu
</div>
